home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 108
/
jogo-disk-108.iso
/
Games
/
playing_with_fire.swf
/
scripts
/
frame_56
/
PlaceObject2_279_100
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
next >
Wrap
Text File
|
2010-05-15
|
976b
|
39 lines
onClipEvent(enterFrame){
if(!_root.movGame.blnRoundOver)
{
myTime = new Date();
nTime = myTime.getTime() - nTimeLag;
strTime = new String(nTime);
nLen = strTime.length;
strSecs = strSecSubtract - Number(strTime.substring(0,nLen - 3));
if(strSecs < 0)
{
strSecSubtract += 60;
strMins--;
}
if(strSecs >= 60)
{
strAdd = 1;
}
else
{
strAdd = 0;
}
if(strSecs <= 0 || strSecs >= 60)
{
strSecs = "00";
}
if(strSecs > 0 && strSecs < 10)
{
strSecs = "0" + String(strSecs);
}
txtTime = Number(strMins + strAdd) + ":" + strSecs;
if(strMins + strAdd < 0 && strSecs == 0)
{
_root.movGame.blnRoundOver = 1;
}
nFrame = Number(_root.movTime.strMins) * 60 + Number(_root.movTime.strSecs);
movBar.gotoAndStop(120 - nFrame);
}
}